package cn.signalpha.modules.shop.entity;

import cn.signalpha.core.swagger.ApiModelPropertyEnum;
import cn.signalpha.modules.shop.entity.enums.PublicityTypeEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类
 *
 * @author signalpha
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("shop_publicity")
@ApiModel(value = "Publicity对象", description = "营销推广")
public class Publicity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private Long id;

	@ApiModelProperty(value = "商户id")
	private Long sellerId;

    @ApiModelProperty(value = "类型")
	@ApiModelPropertyEnum(PublicityTypeEnum.class)
    private String type;

    @ApiModelProperty(value = "标题")
    private String title;

	@ApiModelProperty(value = "排序值")
	private Integer sort;

	@ApiModelProperty(value = "是否可以使用优惠券")
	private Integer isCoupon;

	@ApiModelProperty(value = "配置")
	private String config;

	@ApiModelProperty(value = "活动说明")
	private String remark;

	@ApiModelProperty(value = "开始时间")
	private Date beginTime;

	@ApiModelProperty(value = "结束时间")
	private Date endTime;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

}
